<?php
/**
 * User: 自娱自乐自逍遥
 * Date: 14-10-13
 * Time: 下午4:29
 */

namespace Common\Controller;


use Vendor\TianKu\Controller;

class MemberController extends Controller{

    /**
     * @var \Member\Model\MemberModel;
     */
    protected $user;

    public function __construct(){
        parent::__construct();
        $this->user = D('Member/Member');
        $this->assign('user', $this->user);
    }

    /**
     * 检测是否已登陆
     * @return bool
     */
    protected function check_is_login(){
        $status = $this->user->verify_login();
        if(!$status){
            $this->error('您还未登陆，即将跳转到登陆页面!');
        }
        return $status;
    }
} 